import {createRouter, createWebHistory} from 'vue-router';
import Layout from '@/views/Lay.vue';

const routes = [
    {
        path: '/',
        component: Layout,
        children: [
            {
                path: '/',
                component: () => import("@/views/FileList.vue")
            },
            {
                path: 'filelist',
                component: () => import("@/views/FileList.vue")
            },
        ]
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
